#!/bin/bash

# 测试脚本

echo "=== 运行单元测试 ==="
go test ./... -v

echo ""
echo "=== 测试覆盖率 ==="
go test ./... -coverprofile=coverage.out
go tool cover -html=coverage.out -o coverage.html
echo "覆盖率报告已生成: coverage.html"

echo ""
echo "=== 性能分析 ==="
go run performance/performance_analysis.go